package com.mindai.esper.monitor.biz.exception;


import com.mindai.esper.monitor.biz.enums.BizErrorCode;

/**
 * Created by Ladd on 2016/11/11.
 */
public class CommonBizException extends BaseBizException {

    /**
     * 构造器 含错误码
     *
     * @param codeEnum 错误码
     */
    public CommonBizException(BizErrorCode codeEnum) {
        super(codeEnum);
    }

    /**
     * 构造器 含错误码、错误描述
     *
     * @param codeEnum 错误码
     * @param extraMsg 错误描述
     */
    public CommonBizException(BizErrorCode codeEnum, String extraMsg) {
        super(codeEnum, extraMsg);
    }

    /**
     * 构造器 含错误码、异常
     *
     * @param codeEnum 错误码
     * @param cause    异常
     */
    public CommonBizException(BizErrorCode codeEnum, Throwable cause) {
        super(codeEnum, cause);
    }

    public CommonBizException(BizErrorCode codeEnum, Throwable cause, String extraMsg) {
        super(codeEnum, cause, extraMsg);
    }

}
